//
//  SLCustomerTestimonialsTableViewCell.m
//  SulitLoanDemo
//
//  Created by 虞嘉伟 on 2025/2/19.
//  
  

#import "SLCustomerTestimonialsTableViewCell.h"
#import <YYKit.h>
#import <Masonry.h>


@interface SLCustomerTestimonialsTableViewCell ()
@end
@implementation SLCustomerTestimonialsTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self setupUI];
    }
    return self;
}
- (void)setupUI {
    self.backgroundColor = UIColor.clearColor;
    self.contentView.backgroundColor = UIColor.whiteColor;
    [self.contentView addSubview:self.item];
    [self.item mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.equalTo(self.contentView).inset(14);
        make.top.bottom.equalTo(self.contentView).inset(15*0.5);
    }];
}

- (SLCustomerTestimonialsItemComponent *)item {
    if (!_item) {
        _item = [SLCustomerTestimonialsItemComponent new];
        _item.backgroundColor = UIColor.whiteColor;
    }
    return _item;
}
@end
